import request from "@/utils/request";

export const classesListService = (params) => {
    return request.get("/classes/list", {params: params})
}

export const classesAddService = (data) => {
    return request.post("/classes/add", data)
}

export const classesUpdateService = (data) => {
    return request.put("/classes/update", data)
}

export const classesDeleteService = (id) => {
    return request.delete("/classes/delete?id="+id)
}

export const classesAllService = () => {
    return request.get("/classes/all")
}